
var page = sm("do_Page");
var nf = sm("do_Notification");
var app = sm("do_App");
var global = sm("do_Global");
var do_Button_back = ui("do_Button_back");

do_Button_back.on("touch",function(){
	app.closePage();
});

page.on("back", function(data) {
	app.closePage();
});

//从第一个界面获取数值
var icon = ui("icon");
var assistant =ui("assistant");
var time = ui("time");
var money = ui("money");
var payer = ui("payer");

icon.source = global.getMemory("key1")
assistant.text = global.getMemory("key2");
time.text = global.getMemory("key3");
money.text = global.getMemory("key4");
payer.text = global.getMemory("key5");




/*var root = ui("$");
root.setMapping({
	"icon.source": "icon",
	"assistant.text": "assistant",
	"time.text": "time",	
	"money.text": "money",	
	"payer.text": "payer"
});
*/




/*var do_Button_Consumption = ui("do_Button_Consumption");
var do_Button_Storedvalue = ui("do_Button_Storedvalue");
var do_Button_Coupons = ui("do_Button_Coupons");
var do_Button_Sign = ui("do_Button_Sign");
var do_Button_news = ui("do_Button_news");
var do_Button_Monthlyreport = ui("do_Button_Monthlyreport");

do_Button_Consumption.on("touch", function() {
	app.openPage("source://view/Consumption/Consumption.ui");
});
do_Button_Storedvalue.on("touch", function() {
	app.openPage("source://view/storedvalue/storedvalue.ui");
});
do_Button_Coupons.on("touch", function() {
	app.openPage("source://view/Consumption/SweepCodePayment.ui");
});
do_Button_Sign.on("touch", function() {
	app.openPage("source://view/sign/sign.ui");
});
do_Button_news.on("touch", function() {
	app.openPage("source://view/news/do_listview.ui");
});
do_Button_Monthlyreport.on("touch", function() {
	app.openPage("source://view/datashow/main.ui");
});*/